class {
    onCreate() {
        this.state = {
            count: 1
        }
    }
}
<div>
    <span.name>${out.global.name}</span>
    <span.count>${state.count}</span>
</div>
